package com.hko.qrip.bean;

import java.sql.Timestamp;

public class SubWarn {
	private Timestamp datetime;
	private String corridor;
	private int isMba;
	private int magnitude;
	private boolean isTurb;

	@Override
	public boolean equals(Object a) {
		if (a == null)
			return false;
		if (a instanceof SubWarn) {
			SubWarn alert = (SubWarn) a;
			return alert.getDatetime().equals(datetime) && alert.getCorridor().equals(corridor) && alert.isTurb() == isTurb;
		}
		return false;
	}
	
	public Timestamp getDatetime() {
		return datetime;
	}

	public void setDatetime(Timestamp datetime) {
		this.datetime = datetime;
	}

	public String getCorridor() {
		return corridor;
	}

	public void setCorridor(String corridor) {
		this.corridor = corridor;
	}

	public int getIsMba() {
		return isMba;
	}

	public void setIsMba(int isMba) {
		this.isMba = isMba;
	}

	public int getMagnitude() {
		return magnitude;
	}

	public void setMagnitude(int magnitude) {
		this.magnitude = magnitude;
	}

	public boolean isTurb() {
		return isTurb;
	}

	public void setTurb(boolean isTurb) {
		this.isTurb = isTurb;
	}

}
